package com.gravata.enigma.adapter;
import java.util.List;

import android.content.Context;
import android.widget.TextView;

import com.gravata.enigma.GenericArrayAdapter;
import com.gravata.enigma.R;
import com.gravata.enigma.model.Bouquet;


public class ComboBouquetAdapter extends GenericArrayAdapter<Bouquet> {

	public ComboBouquetAdapter(Context context, List<Bouquet> objects) {
		super(context,R.layout.spinner_item  ,android.R.layout.simple_spinner_dropdown_item, objects,null);
	}

	@Override
	public void drawText(TextView textView, Bouquet bouquet) {
		textView.setText(bouquet.getName());
	}


}
